package practice;

import java.time.Year;
import java.util.Calendar;
import java.util.GregorianCalendar;

public class TodayTester {
    public static void main(String[] args) {
        GregorianCalendar today=new GregorianCalendar();
        System.out.printf("今天是%04d年%02d月%02d日。\n",
                today.get(Calendar.YEAR),
                today.get(Calendar.MONTH)+1,
                today.get(Calendar.DATE)
        );
    }
}
